//package com.ikonke.reactor_learn.reactor.router;
//
//import com.ikonke.reactor_learn.reactor.handler.CityHandler;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.http.MediaType;
//import org.springframework.web.reactive.function.server.RequestPredicates;
//import org.springframework.web.reactive.function.server.RouterFunction;
//import org.springframework.web.reactive.function.server.RouterFunctions;
//import org.springframework.web.reactive.function.server.ServerResponse;
//
///**
// * @Author: liull
// * @Description:
// * @Date: Created in 15:39 2020/8/7
// * @Modified By:
// */
//@Configuration
//public class CityRouter {
//
//    @Bean
//    public RouterFunction<ServerResponse> cityRoute(CityHandler handler) {
//        return RouterFunctions.route(RequestPredicates.GET("/hello").and(RequestPredicates.contentType(MediaType.TEXT_PLAIN)),
//                handler::cityHandler);
//    }
//}
